package com.troila.cloud.simplify.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import com.troila.cloud.simplify.filter.WechatInterceptor;

@Configuration
public class InterceptorConfiguration extends WebMvcConfigurerAdapter{
	
	
	@Autowired
	private WechatInterceptor wechat;
	
	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(wechat);
		super.addInterceptors(registry);
	}

}
